Semanageaddporttype

Thelastargumentistheportnumbertoadd.Thesemanageport-acommandaddsanentrytothe/etc/selinux/targeted/modules/active/ports.localfile.,Runthesemanageport-a-thttp_port_t-ptcp12345commandastherootusertoaddtheporttoSELinuxpolicyconfiguration.Runthesemanageport-l ...,然後,又看到底下的指令,就是『semanageport-a-tPORT_TYPE-ptcp377』這一段,你應該會覺得很開心!因為剛剛才學過啊!,2022年11月22日—Ifwewantto...

8.2.2. How are Confined Services Running?

The last argument is the port number to add. The semanage port -a command adds an entry to the /etc/selinux/targeted/modules/active/ports. local file.

2.4.4. Changing port numbers

Run the semanage port -a -t http_port_t -p tcp 12345 command as the root user to add the port to SELinux policy configuration. Run the semanage port -l ...

第三章、SELinux 初探

然後,又看到底下的指令, 就是『 semanage port -a -t PORT_TYPE -p tcp 377 』這一段,你應該會覺得很開心! 因為剛剛才學過啊!

semanage Command with Examples

2022年11月22日 — If we want to modify a service to use a non-default port we will need to modify the port type with the semanage port command. You can use these ...

semanage-port

semanage is used to configure certain elements of SELinux policy without requiring modification to or recompilation from policy sources.

Best way to manage custom ports in SELinux

2012年2月23日 — Narrow solution. The alternative for binding is to use the following command to add our custom port to the http_port_t list: semanage port -a ...

Opening ports to Security

2020年9月22日 — Use the semanage command to open required ports for MSS or HACloud sessionserver for a Redhat or CentOS system.

SELinuxTutorialsManaging network port labels

2022年6月23日 — Within SELinux, ports are labeled, just like other resources. The semanage port command displays the rules for port assignment.

semanage-port(8)

semanage is used to configure certain elements of SELinux policy without requiring modification to or recompilation from policy sources. semanage port controls ...